package stack_queue.stack;

/**
 * @Author: wenjingyuan
 * @Date: 2022/09/28/16:38
 * @Description:
 */
public class StackTest {
    public static void main(String[] args) {
        Stack<Integer> stack=new Stack<>();
        stack.push(1);
        stack.push(2);
        stack.push(3);
        System.out.println(stack);
        stack.push(5);
        System.out.println(stack);

        System.out.println( stack.peek());
        stack.pop();
        System.out.println(stack);
        }
}
